package com.wjw.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
*@author WuJianWei
*@date 2022/2/28 20:00
*/
@Data
@TableName(value = "product")
public class Product implements Serializable {
    @TableId(value = "product_id", type = IdType.ASSIGN_ID)
    private Integer productId;

    @TableField(value = "product_name")
    private String productName;

    @TableField(value = "category_id")
    private Integer categoryId;

    @TableField(value = "product_title")
    private String productTitle;

    @TableField(value = "product_intro")
    private String productIntro;

    @TableField(value = "product_picture")
    private String productPicture;

    @TableField(value = "product_price")
    private BigDecimal productPrice;

    @TableField(value = "product_selling_price")
    private BigDecimal productSellingPrice;

    @TableField(value = "product_num")
    private Integer productNum;

    @TableField(value = "product_sales")
    private Integer productSales;

    @TableField(value = "status")
    private Integer status;

    @TableField(value = "business_id")
    private String businessId;

    private static final long serialVersionUID = 1L;

    public static final String COL_PRODUCT_ID = "product_id";

    public static final String COL_PRODUCT_NAME = "product_name";

    public static final String COL_CATEGORY_ID = "category_id";

    public static final String COL_PRODUCT_TITLE = "product_title";

    public static final String COL_PRODUCT_INTRO = "product_intro";

    public static final String COL_PRODUCT_PICTURE = "product_picture";

    public static final String COL_PRODUCT_PRICE = "product_price";

    public static final String COL_PRODUCT_SELLING_PRICE = "product_selling_price";

    public static final String COL_PRODUCT_NUM = "product_num";

    public static final String COL_PRODUCT_SALES = "product_sales";

    public static final String COL_STATUS = "status";
}